Introduction

For the last few years my most listened to genre in my Spotify Wrapped has been Rock Music. Not surprising, since a large part of my personal playlists contain this genre. There is, however, a lot of subgenres within Rock. After it’s quick rise of popularity in the 1960’s, there have been a lot of different developments and movements. This is also the case in the music that I listen to, where there is a wide range of different subgenres. This got me thinking about what the differences between rock music in different time periods might be. The main focus of this portfolio will be to uncover these differences within the limits of the Spotify API. We will do so by looking at a few different topics for different tracks. Examples of these will include track-level features, chroma features, different chords used and tempo.

At first the plan was to look at rock as a whole for this comparison, but I soon found out that this would make the comparisons way to brought with all the different. This is why I narrowed the corpus down to three bands that each was very influential in their time: The Beatles in the 60’s, Nirvana in the 80’s/90’s and Coldplay in the modern era. For each band I made a playlist based on the ones provided by Spotify. These include the most popular tracks. I then removed all the live tracks, since those can intervene with this research. The playlists can be found in the links below:

Below are some interesting stats about the corpus for each band:
Band Name Number of Tracks Total Duration (min) First Album Release Last Album Release
Coldplay 48 213.3382 1999-10-11 2022-07-06
Nirvana 38 126.5581 1989-06-01 2004-11-23
The Beatles 50 141.8337 1963-03-22 2023-11-02

The Beatles:

Nirvana:

Coldplay:

What is the difference is tempo?


The plot on the left shows how the bands differ in the tempo of their tracks. What strikes out first is that the tracks of Nirvana overall have a much higher tempo then both other bands. The median tempo of Nirvana is about 6.5% higher. This difference is even biggest in the top 50 percentile. This was expected beforehand, since Nirvana is known for its high energy music.

What was not expected however, is the great similarity of tempo of The Beatles and Coldplay. The boxplots of both bands on the left is near identical, where q1, q2 and the median are almost identical. It was expected beforehand that the difference in tempo would be a bit more noticeable.

Chromagram and Cepstrogram


Self-Simularity Matrices


Track-Level Analyses: Tempo, Volume and Duration


The plot on the left gives a more detailed look of the tempo graph made earlier. Here we can see that indeed tracks of Nirvana have a higher tempo and that the tracks of Coldplay and The Beatles are roughly equally distributed.

What is now also interesting to see is the standard deviation of the tempo for each track. There now seems to be a difference in tempo between The Beatles and Coldplay. According to the graph, The Beatles have more variation of tempo within their tracks then Coldplay. When we keep looking at the standard deviation of tempo, Nirvana seems to also be higher in this regard in comparison to the other two bands.

Classifier


The graph on the left shows the performance of a random-forest classifier trying to distinguish the three artists. Using all features, the most important are listed below:

The classifier also found that some of the chroma are important during classification: c02, c05, c06 and c11. All these features were used to train the random-forest classifier eventually used.

Overall, the classifier performs really well.